package com.leyou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.pojo.SpecGroup;
import com.leyou.pojo.Spu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author jshstart
 * @creat 2020-12-11 12:55
 */
public interface SpuMapper extends BaseMapper<Spu> {
    @Update("update tb_spu set saleable=#{saleable} where id =#{id}")
    void updateSaleableBySpuId(@Param("id") Long id, @Param("saleable") Boolean saleable);
}
